package com.shenyi.wx.api;

import com.shenyi.wx.entity.SmsLogDO;
import com.shenyi.wx.entity.UserDO;

import java.util.List;
import java.util.Map;

/**
 * @author richard.fan
 * @version 1.0
 * @date 2018/11/06
 * @desc 会员
 * @see
 * @since 1.0
 */
public interface IApiUserService {

    UserDO queryObject(Long userId);

    UserDO queryByOpenId(String openId);

    List<UserDO> queryList(Map<String, Object> map);

    int queryTotal(Map<String, Object> map);

    void save(String mobile, String password);

    void save(UserDO UserDO);

    void update(UserDO user);

    void delete(Long userId);

    void deleteBatch(Long[] userIds);

    UserDO queryByMobile(String mobile);

    long login(String mobile, String password);

    SmsLogDO querySmsCodeByUserId(Long user_id);


    int saveSmsCodeLog(SmsLogDO smsLogVo);

    String getUserLevel(UserDO loginUser);
}
